@(title: String, activity: Activity)
@foot = {
    <script src="/assets/js/activity.js"></script>
}
@views.html._layout(title + " - 报名", foot = foot) {
    <div class="container">
        <h2>@activity.title <small>报名</small></h2>
        <p>@Html(activity.content)</p>
        <hr>
        <p id="message-error" class="alert alert-danger hidden"></p>
        <form role="form" id="activity-register-form">
            <div class="form-group">
                <label class="control-label">姓名</label>
                <input type="text" class="form-control" name="name" placeholder="姓名" required>
            </div>
            <div class="form-group">
                <label class="control-label">手机号</label>
                <input type="tel" class="form-control" name="phone" placeholder="手机号" required>
            </div>
            <div class="form-group">
                <label class="control-label">公司</label>
                <input type="text" class="form-control" name="corporation" placeholder="完整公司名称" required>
            </div>
            <div class="form-group">
                <label class="control-label">职务</label>
                <input type="text" class="form-control" name="job">
            </div>
            <div class="form-group">
                <input type="hidden" name="activity" value="@activity._id.stringify">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </form>
    </div>
}
